{% load i18n %}
{% load gravatar %}
{% load tagging_tags %}

<div class="video-right-profile clearfix">
    <div class="video-avatar">{% gravatar video.member.username 50 %}</div>
    <div class="video-profile-details">
        <h2>Taken By</h2>
        <a href="{% url profiles.views.profile video.member.username %}" title="{{ video.member.username }}">{{ video.member.username }}</a><br />
        {{ video.date_taken|date }}<br />
        Viewed {{ video.view_count }} times
    
    </div>
</div>

<div class="video-right-tools">
    {% if video.tags %}
        <h2><img src="/site_media/tags.png" border="0" class="noborder" align="absmiddle" /> Tags</h2> 
        <ul>
            {% tags_for_object video as tags %}
            {% for tag in tags %}
                <li><a href="/tags/{{ tag }}">{{ tag }}</a></li>
            {% endfor %}
        </ul>

        <div class="embed">
        <a href="#" onclick="$('#embed-code').toggle(); return false;">{% trans "Get Embed Code" %}</a>
             <div id="embed-code" style="display: none;">
                <textarea>
                    <a href="{{ host }}/videos/details/{{ video.id }}"><img src="{{ host }}/{{ video_url }}" alt="{{ video.title }}"/></a>
                </textarea>
            </div>
        </div>

    {% endif %}
    
    {% if is_me %}
        <form action="{% url video_destroy video.id %}" method="POST">
            <label>Delete Video</label> <input type="image" src="/site_media/delete.png" border="0" title="{% trans "Delete Video" %}" />
                        <input type="hidden" name="action" value="delete"/>
        </form>

        <a href="{% url video_edit video.id %}">Edit Video</a>

    {% endif %}

</div>

<div class="video-right-exif">

</div>
{% if is_me %}
<div class="video-right-profile ">

</div>
{% endif %}
